package com.project.uitl;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author(王思翰)
 * @Description(类的描述)
 * @Date(创建时间) 2021/7/25 16:18
 */
public class LocalDateTimeUtil {
    private static final String DATETIME_FORMAT1 = "yyyy-MM-dd HH:mm:ss";

    public static LocalDateTime play(String time) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATETIME_FORMAT1);
        if (time==null){
            return null;
        }
        return LocalDateTime.parse(time,formatter);
    }
}
